Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persist locally registered services and checks #497

Merged
merged 3 commits into from
Nov 24, 2014
Merged

Persist locally registered services and checks #497

merged 3 commits into from
Nov 24, 2014

Conversation

ryanuber
Copy link
Member

Writes local services and checks to JSON files in the data directory, and loads them on agent start. The files are removed as services and checks are deregistered. Files seemed like the way to go since clients don't use MDB.

When checks are loaded, their health status is marked critical to avoid placing potentially unhealthy services into the service pool.

Fixes #464.

/cc @armon, let me know if I am missing anything here.

@armon
Copy link
Member

armon commented Nov 24, 2014

Looks great!

armon added a commit that referenced this pull request Nov 24, 2014
Persist locally registered services and checks
@armon armon merged commit f74d3db into master Nov 24, 2014
@armon armon deleted the f-persist branch November 24, 2014 19:14
@xla
Copy link
Contributor

xla commented Nov 24, 2014

Highest of the fives

duckhan pushed a commit to duckhan/consul that referenced this pull request Oct 24, 2021
* Small formatting changes to Usage

Created a numbered list with code indents to make it easier to follow

* Update README.md

Co-authored-by: Iryna Shustava <ishustava@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

service and check are deregistered after a crash
3 participants